package com.lzy.pattern.iterator.userdefined;

/**
 * @InterfaceName: StudentAggregate
 * @Description: 抽象聚合（Aggregate）角色：定义存储、添加、删除聚合元素以及创建迭代器对象的接口。
 * @Author: LiuZy
 * @Date: 2022/5/1 19:39
 * @Version: 1.0
 */
public interface StudentAggregate {
    void add(Student student);
    void remove(Student student);
    StudentIterator getStudentIterator();
}
